﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;

namespace JForms
{
    public class LinkButton : JControl
    {
        public string Callback { get; set; }
        public string Text { get; set; }

        protected override void Render(HtmlTextWriter writer)
        {
            writer.Write("<a href=\"#" + Callback + "\" class=\"linkButton\" >" + Text + "</a>");
        }
    }

    public class TextBox : JControl
    {
        public string Text { get; set; }

        protected override void Render(HtmlTextWriter writer)
        {
            writer.Write("<input name=\"" + this.ClientID + "\" id=\"" + this.ClientID + "\" value=\"" + Text + "\" />");
        }
    }

    public class Label : JControl
    {
        public string Text { get; set; }

        protected override void Render(HtmlTextWriter writer)
        {
            writer.Write("<label id=\"" + this.ClientID + "\">" + Text + "</label>");
        }
    }

    public class JControl : Control
    {

    }
}